# -*- coding: utf-8 -*-

import sys
import urllib2

search_url = "http://wap.ip138.com/ip_search138.asp?ip="

ip_addr = sys.argv[1]

ipurl = urllib2.urlopen(search_url + ip_addr)
fip = ipurl.read()
print(fip)
